package vo;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
//import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;


/*
 * CREATE TABLE rc_accounts (
  ACCOUNT VARCHAR(32),
  PASSWORD varchar(32) DEFAULT NULL,
  NAME varchar(32) null,
  NAME_PY varchar(32) DEFAULT NULL,
  SEX VARCHAR(8) NULL,
  NATIVE_PLACE varchar(128) NULL,
  EMAIL varchar(64) DEFAULT NULL,
  TEL varchar(32) DEFAULT NULL, 
  REG_TIME timestamp NULL ,
  IS_RECEIVE_EMAIL varchar(1) DEFAULT NULL,
  REMARK varchar(64) DEFAULT NULL,
  PRIMARY KEY (ACCOUNT)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 */
@Entity  
@Table(name = "rc_accounts") 
public class User {	
	@Id  
    @Basic(optional = false)  
    @GeneratedValue(generator = "paymentableGenerator")    
    @GenericGenerator(name = "paymentableGenerator", strategy = "assigned",parameters = {  
    			@Parameter(name = "unsaved-value" , value = "null"),  
    			})
    @Column(name = "account", nullable = false)  
    private String account;

	@Column(name = "password")  
	private String password;
	
	@Column(name = "name")  
	private String name;
	
	@Column(name = "name_py")  
	private String name_py;
	
	@Column(name = "sex")  		
	private String sex;
	
	@Column(name = "native_place")  	
	private String native_place;	
	
	@Column(name = "email")  		
	private String email;
	
	@Column(name = "tel")  	
	private String tel;	
	
	@Column(name = "reg_time")  	
	private Date reg_time;
	
	@Column(name = "is_receive_email")  
	private String is_receive_email;
	
	@Column(name = "remark")  
	private String remark;
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getIs_receive_email() {
		return is_receive_email;
	}
	public void setIs_receive_email(String is_receive_email) {
		this.is_receive_email = is_receive_email;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName_py() {
		return name_py;
	}
	public void setName_py(String name_py) {
		this.name_py = name_py;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Date getReg_time() {
		return reg_time;
	}
	public void setReg_time(Date reg_time) {
		this.reg_time = reg_time;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getNative_place() {
		return native_place;
	}
	public void setNative_place(String native_place) {
		this.native_place = native_place;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	
	

}
